package com.xplay.xpocker.exception;

public enum StatusCodeEnum {

    /***
     * 200001  app 做了 游戏页面退出
     */
    SUCCESS("1111", "成功"),
    ERROR("8888", "失败"),
    VALIDATE_CODE_ERROR("100001", "验证码错误"),
    ROOM_NOT_FOUND("200001", "房间已经解散"),
    ROOM_ON_MORE("200001", "多次进入房间"),
    ROOM_FULL("200002", "房间已满"),
    UNAUTHORIZED("401", "用户未认证"),
    RUN_TIME_EXCEPTION("500", "系统异常"),
    UPDATE_VERSION("30001", "请更新版本"),
    ROOM_NOT_EXISTS("10001", "房间不存在");
    private String code;
    private String desc;

    StatusCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
